tee into file

106

tee into file -

foo | tee output.file
For example, if you only care about stdout:

ls -a | tee output.file
If you want to include stderr, do:

program [arguments...] 2>&1 | tee outfile

Comments

Submit
0 Comments